package com.woniu.cms.auth.core.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.cms.auth.core.entity.RbacUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.cms.auth.core.vo.PageUser;
import com.woniu.cms.auth.core.vo.PageUserVo;
import com.woniu.cms.auth.core.vo.PermVo;
import com.woniu.cms.auth.core.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lilili
 * @since 2022-09-16
 */
public interface RbacUserMapper extends BaseMapper<RbacUser> {


    UserVo getUserVo(Integer id);


    Page<PageUser> selectUserVoPage(Page<PageUser> page, @Param("user") PageUser pageUser);

    Page<PageUser> selectLikeUserVoPage(Page<PageUser> page, @Param("user")PageUser pageUser, @Param("like")String like);

    List<PermVo> getUserPerm(Integer userId);
}
